﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div style="text-align:left;float:left;vertical-align:bottom;">
    <% using (Html.BeginForm("Index", "Questions")){%>
    <%= Html.TextBox("SearchKeys")%>
    <input type="submit" value="Търси" />
    &nbsp; <a href="javascript:animatedcollapse.toggle('divAdvancedSearch')">Разширено Търсене</a>
    <br />
    <div id="divAdvancedSearch" style="width: 380px; background: #FC6703; display:none">
    <input type="checkbox" id="srchInAswers" name="srchInAswers" /> търси и в отговорите
    <br />
        <div style="width: 90%">
         <% IQueryable<CarHelpDesk.Web.Models.Tag> tags = Model as IQueryable<CarHelpDesk.Web.Models.Tag>;
            int position = 0;
            foreach (CarHelpDesk.Web.Models.Tag item in tags)
            { %>
            <span style="width:33%"><input type="checkbox" id="<%= item.Title%>" name="<%= item.Title%>"/> <%= item.Title%></span>
            <% if (position % 3 == 2){ %>
                <br />
            <% } position++; %>
         <% } %>
        </div>
    </div>
    <% } %>
</div> 
 
    
